package com.novax.ex.activity.open.model.response;

import com.novax.ex.common.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;


/**
 * Description:商品配置
 *
 * @author Deucalion@novax.email
 * @date 2023/2/21 16:47
 */
@Schema(description = "商品配置")
@Data
@EqualsAndHashCode(callSuper=true)
public class MallProductResponse extends BaseEntity {
    /**
    * 商品名称
    */
    @Schema(description = "商品名称")
    private String title;

    /**
    * 库存数量
    */
    @Schema(description = "库存数量")
    private Integer stockCount;

    /**
    * 售卖价格
    */
    @Schema(description = "售卖价格")
    private BigDecimal price;

    /**
    * 货币名称(英文简称)
    */
    @Schema(description = "货币名称(英文简称)")
    private String currency;

    /**
    * 排序
    */
    @Schema(description = "排序")
    private Integer sort;

    /**
     * 商品缩略图
     */
    @Schema(description = "商品缩略图")
    private String image;

    /**
    * 状态：1:上架，2:下架
    */
    @Schema(description = "状态：1:上架，2:下架")
    private Integer status;

    /**
    * 是否被删除:1=是,0=否
    */
    @Schema(description = "是否被删除:1=是,0=否")
    private Integer isDelete;

    /**
     * 成本
     */
    @Schema(description = "成本")
    private BigDecimal cost;

    /**
     * 成本-货币名称(英文简称)
     */
    @Schema(description = "成本-货币名称(英文简称)")
    private String costCurrency;

    /**
     * 备注
     */
    @Schema(description = "备注")
    private String memo;
}
